Disable gvfs and other GIO modules for build-time tests
authorSimon McVittie <smcv@debian.org>
Fri, 11 Dec 2020 16:51:02 +0000 (16:51 +0000)
committerSimon McVittie <smcv@debian.org>
Fri, 11 Dec 2020 16:51:02 +0000 (16:51 +0000)
If running on a developer system, we don't want to interact with
"larger" components like gnome-online-accounts.

debian/rules

index 8ae4c45b36318b2ea9cf7f02090054481adb870b..de5cd25d42538aa3ca349369b28c6af42476edb9 100755 (executable)
@@ -187,7 +187,11 @@ ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
        cp gtk/org.gtk.* debian/build/glib-2.0/schemas/
        glib-compile-schemas debian/build/glib-2.0/schemas/
        # Remove LD_PRELOAD so we don't run with fakeroot, which makes dbus-related tests fail
-       env -u LD_PRELOAD \
+       env \
+               -u LD_PRELOAD \
+               GIO_MODULE_DIR=/nonexistent \
+               GIO_USE_VFS=local \
+               GIO_USE_VOLUME_MONITOR=unix \
        dbus-run-session -- \
        xvfb-run -a -s "-screen 0 1024x768x24" \
        debian/tests/run-with-locales \